package com.jifen.pay.service;
/**
 * 类名：PayService
 * 作者：zhangtao
 * 日期：2019/7/2 11:14
 * 版本：1.0.0
 * 描述：TODO
 **/
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PayService {

    @Autowired
    WeixinService weixinService;

    public Object mchRecharge(int payType, String token, int jifen, String ip){
        Object rst = null;
        if(payType==1){
            rst = weixinService.mchRecharge(token, jifen, ip);
        }
        return rst;
    }

    public Object smarketTrade(int payType, String token, String content, String ip){
        Object rst = null;
        if(payType==1){
            rst = weixinService.smarketTrade(token, content, ip);
        }
        return rst;
    }


}
